package com.cskaoyan.mapper;

import com.cskaoyan.bean.MarketCollect;
import com.cskaoyan.bean.MarketCollectExample;
import com.cskaoyan.bean.collect.CollectBo;
import com.cskaoyan.bean.collect.CollectListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketCollectMapper {
    long countByExample(MarketCollectExample example);

    int deleteByExample(MarketCollectExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCollect record);

    int insertSelective(MarketCollect record);

    List<MarketCollect> selectByExample(MarketCollectExample example);

    MarketCollect selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketCollect record, @Param("example") MarketCollectExample example);

    int updateByExample(@Param("record") MarketCollect record, @Param("example") MarketCollectExample example);

    int updateByPrimaryKeySelective(MarketCollect record);

    int updateByPrimaryKey(MarketCollect record);

    //---------------xd 2022.9.12--------------
    List<CollectListVo> query(Integer uid);


    Boolean queryIdIfExist(int type, int valueId, Integer uid);   //这里可能有问题，用了param1 2 3

    void updateCancelCollect( @Param("c")CollectBo collectBo);

    void updateCollect(@Param("c")CollectBo collectBo);

    void insertCollect(@Param("c")CollectBo collectBo);

    void deleteCollect(@Param("c")CollectBo collectBo);
}